Fix ew recognition in unicsv reader.
authorGPSBabel <gpsbabel@users.noreply.github.com>
Mon, 1 May 2017 00:36:06 +0000 (19:36 -0500)
committerGitHub <noreply@github.com>
Mon, 1 May 2017 00:36:06 +0000 (19:36 -0500)
See mail thread "[Gpsbabel-code] WG: unicsv.cc - bug?" from Levin at Capecross

unicsv.cc

index c283a3d7ba44f0ba16dc71c6e2aafbc67fb3d0b1..4a7d78eddf97486dc222603147247f3d802bb313 100644 (file)
--- a/unicsv.cc
+++ b/unicsv.cc
@@ -968,7 +968,7 @@ unicsv_parse_one_line(char* ibuf)
       break;
 
     case fld_ew:
-      ns = s.startsWith('e', Qt::CaseInsensitive) ? 1 : -1;
+      ew = s.startsWith('e', Qt::CaseInsensitive) ? 1 : -1;
       wpt->longitude *= ew;
       break;